<?php
	//header("Content-type:text/html;charset=utf-8");
	//--------------------------------------------------------------------------
	//初始化自定义常量
	define('INCLUDE_PATH',dirname(__FILE__).'/');
	//define('DEBUG',1);
	require_once(INCLUDE_PATH.'class.autoload.php');//类文件的自动加载
	error_reporting(0);
	//-------------------------------------------------------------------------
	require_once(INCLUDE_PATH.'db.config.ini');		//数据库初始化配置信息
	require_once(INCLUDE_PATH.'functions.inc.php');     //函数库的加载
	//require_once(INCLUDE_PATH.'template.inc.php');  //模板类及对象$tpl的加载
	//--------------------------------------------------------------------------
	//检测魔术设置
	if (get_magic_quotes_gpc())
	{
		function _stripslashes_rcurs($value)
		{
			return (is_array($value)) ?
				array_map('_stripslashes_rcurs', $value) : stripslashes($value);
		}
		$_GET = array_map('_stripslashes_rcurs', $_GET);
		$_POST = array_map('_stripslashes_rcurs', $_POST);
		$_REQUEST = array_map('_stripslashes_rcurs', $_REQUEST);
		$_COOKIE = array_map('_stripslashes_rcurs', $_COOKIE);
	}
	//--------------------------------------------------------------------------
	/* 设置页类导航图片
	 * 图片缺省名称firstpage.jpg、prevpage.jpg、nextpage.jpg、lastpage.jpg
	 */
	$tpm = MysqlDB::getInstance(); //mysql数据库操作对象
	depth_trim_escape($_REQUEST,$tpm);
	extract($_REQUEST);